/**
 * @file Name: 2.cpp
 * @author: Fenghuwuyu
 * @version: 1.0
 * @brief:
 * @date: Mon 05 Apr 2021 12:45:51 AM PDT
 */

#include<iostream>

class my_vector
{
	private:
		double* elem;
		int sz;
	public:
		my_vector(int _s) :elem{new double{s}}, sz{s}
		{
			for(int i=0;i!=s;++i)
				elem[i]=0;
		}
		//constructor
		///
		// keyword new can open up new storage space
		~my_vector()
		{
			delete [] elem;
		}
		///
		// keyword delete can release storage space
}
